<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<div class="modal-dialog">
	<div class="modal-content">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal"
				aria-hidden="true">X</button>
			<h3 id="myModalLabel">${empty entity?'新增':'修改' }免息劵发放信息</h3>
		</div>
		<div class="modal-body">
			<form class="form-horizontal" method="post" id="sysUserForm"
				name="accountForm"
				action="account/save${empty entity?'Insert':'Update' }.htm"
				role="form">
				<div class="form-group">
					<label class="col-sm-2 control-label">用户id<font color="red">&nbsp;*</font></label>
					<div class="col-sm-10">
						<input type="hidden" value="${entity.accountId }"
							name="accountId" /> 
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">优惠卷类型编号<font color="red">&nbsp;*</font></label>
					<div class="col-sm-10">
						<textarea id="coupon_couponIdCardNo" name="couponIdCardNo" id="">${entity.couponIdCardNo }</textarea>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">备注</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="remark"
							 value="${entity.remark }">
					</div>
				</div>
				<span id="tip" style="color: red; font-size: 14px; margin-left: 20px;"></span>
			</form>
		</div>
		<div class="modal-footer">
			<button class="btn btn-default" data-dismiss="modal"
				aria-hidden="true">取消</button>
			<button class="btn btn-primary" data-dismiss="modal">保存</button>
		</div>
	</div>
</div>
<script type="text/javascript" src="resources/js/My97DatePicker/WdatePicker.js" charset="utf-8"></script>
<script src="resources/ueditor/ueditor.config.js" type="text/javascript"></script>
<script src="resources/ueditor/ueditor.all.min.js" type="text/javascript"></script>

<script type="text/javascript">
	function check_fun() {
		$("#tip").html("");
		var b = true;
		var accountId = $("#accountId").val();
		var couponIdCardNo = $("#coupon_couponIdCardNo").val();
	
		if (couponTypeId == null || couponTypeId.trim() == '') {
			$("#tip").html("请输入内容");
			b = false;
		}
		if (customerId == null || customerId.trim() == '') {
			$("#tip").html("请输入用户编号");
			b = false;
		}
		return b;
	}

</script>